package com.huang.domain;

import java.util.ArrayList;
import java.util.List;

public class ChildrenExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ChildrenExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNowconfirmIsNull() {
            addCriterion("nowConfirm is null");
            return (Criteria) this;
        }

        public Criteria andNowconfirmIsNotNull() {
            addCriterion("nowConfirm is not null");
            return (Criteria) this;
        }

        public Criteria andNowconfirmEqualTo(String value) {
            addCriterion("nowConfirm =", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmNotEqualTo(String value) {
            addCriterion("nowConfirm <>", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmGreaterThan(String value) {
            addCriterion("nowConfirm >", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmGreaterThanOrEqualTo(String value) {
            addCriterion("nowConfirm >=", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmLessThan(String value) {
            addCriterion("nowConfirm <", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmLessThanOrEqualTo(String value) {
            addCriterion("nowConfirm <=", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmLike(String value) {
            addCriterion("nowConfirm like", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmNotLike(String value) {
            addCriterion("nowConfirm not like", value, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmIn(List<String> values) {
            addCriterion("nowConfirm in", values, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmNotIn(List<String> values) {
            addCriterion("nowConfirm not in", values, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmBetween(String value1, String value2) {
            addCriterion("nowConfirm between", value1, value2, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andNowconfirmNotBetween(String value1, String value2) {
            addCriterion("nowConfirm not between", value1, value2, "nowconfirm");
            return (Criteria) this;
        }

        public Criteria andConfirmIsNull() {
            addCriterion("confirm is null");
            return (Criteria) this;
        }

        public Criteria andConfirmIsNotNull() {
            addCriterion("confirm is not null");
            return (Criteria) this;
        }

        public Criteria andConfirmEqualTo(String value) {
            addCriterion("confirm =", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmNotEqualTo(String value) {
            addCriterion("confirm <>", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmGreaterThan(String value) {
            addCriterion("confirm >", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmGreaterThanOrEqualTo(String value) {
            addCriterion("confirm >=", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmLessThan(String value) {
            addCriterion("confirm <", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmLessThanOrEqualTo(String value) {
            addCriterion("confirm <=", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmLike(String value) {
            addCriterion("confirm like", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmNotLike(String value) {
            addCriterion("confirm not like", value, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmIn(List<String> values) {
            addCriterion("confirm in", values, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmNotIn(List<String> values) {
            addCriterion("confirm not in", values, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmBetween(String value1, String value2) {
            addCriterion("confirm between", value1, value2, "confirm");
            return (Criteria) this;
        }

        public Criteria andConfirmNotBetween(String value1, String value2) {
            addCriterion("confirm not between", value1, value2, "confirm");
            return (Criteria) this;
        }

        public Criteria andSuspectIsNull() {
            addCriterion("suspect is null");
            return (Criteria) this;
        }

        public Criteria andSuspectIsNotNull() {
            addCriterion("suspect is not null");
            return (Criteria) this;
        }

        public Criteria andSuspectEqualTo(String value) {
            addCriterion("suspect =", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectNotEqualTo(String value) {
            addCriterion("suspect <>", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectGreaterThan(String value) {
            addCriterion("suspect >", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectGreaterThanOrEqualTo(String value) {
            addCriterion("suspect >=", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectLessThan(String value) {
            addCriterion("suspect <", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectLessThanOrEqualTo(String value) {
            addCriterion("suspect <=", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectLike(String value) {
            addCriterion("suspect like", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectNotLike(String value) {
            addCriterion("suspect not like", value, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectIn(List<String> values) {
            addCriterion("suspect in", values, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectNotIn(List<String> values) {
            addCriterion("suspect not in", values, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectBetween(String value1, String value2) {
            addCriterion("suspect between", value1, value2, "suspect");
            return (Criteria) this;
        }

        public Criteria andSuspectNotBetween(String value1, String value2) {
            addCriterion("suspect not between", value1, value2, "suspect");
            return (Criteria) this;
        }

        public Criteria andDeadIsNull() {
            addCriterion("dead is null");
            return (Criteria) this;
        }

        public Criteria andDeadIsNotNull() {
            addCriterion("dead is not null");
            return (Criteria) this;
        }

        public Criteria andDeadEqualTo(String value) {
            addCriterion("dead =", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadNotEqualTo(String value) {
            addCriterion("dead <>", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadGreaterThan(String value) {
            addCriterion("dead >", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadGreaterThanOrEqualTo(String value) {
            addCriterion("dead >=", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadLessThan(String value) {
            addCriterion("dead <", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadLessThanOrEqualTo(String value) {
            addCriterion("dead <=", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadLike(String value) {
            addCriterion("dead like", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadNotLike(String value) {
            addCriterion("dead not like", value, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadIn(List<String> values) {
            addCriterion("dead in", values, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadNotIn(List<String> values) {
            addCriterion("dead not in", values, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadBetween(String value1, String value2) {
            addCriterion("dead between", value1, value2, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadNotBetween(String value1, String value2) {
            addCriterion("dead not between", value1, value2, "dead");
            return (Criteria) this;
        }

        public Criteria andDeadrateIsNull() {
            addCriterion("deadRate is null");
            return (Criteria) this;
        }

        public Criteria andDeadrateIsNotNull() {
            addCriterion("deadRate is not null");
            return (Criteria) this;
        }

        public Criteria andDeadrateEqualTo(String value) {
            addCriterion("deadRate =", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateNotEqualTo(String value) {
            addCriterion("deadRate <>", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateGreaterThan(String value) {
            addCriterion("deadRate >", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateGreaterThanOrEqualTo(String value) {
            addCriterion("deadRate >=", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateLessThan(String value) {
            addCriterion("deadRate <", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateLessThanOrEqualTo(String value) {
            addCriterion("deadRate <=", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateLike(String value) {
            addCriterion("deadRate like", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateNotLike(String value) {
            addCriterion("deadRate not like", value, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateIn(List<String> values) {
            addCriterion("deadRate in", values, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateNotIn(List<String> values) {
            addCriterion("deadRate not in", values, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateBetween(String value1, String value2) {
            addCriterion("deadRate between", value1, value2, "deadrate");
            return (Criteria) this;
        }

        public Criteria andDeadrateNotBetween(String value1, String value2) {
            addCriterion("deadRate not between", value1, value2, "deadrate");
            return (Criteria) this;
        }

        public Criteria andHealIsNull() {
            addCriterion("heal is null");
            return (Criteria) this;
        }

        public Criteria andHealIsNotNull() {
            addCriterion("heal is not null");
            return (Criteria) this;
        }

        public Criteria andHealEqualTo(String value) {
            addCriterion("heal =", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealNotEqualTo(String value) {
            addCriterion("heal <>", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealGreaterThan(String value) {
            addCriterion("heal >", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealGreaterThanOrEqualTo(String value) {
            addCriterion("heal >=", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealLessThan(String value) {
            addCriterion("heal <", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealLessThanOrEqualTo(String value) {
            addCriterion("heal <=", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealLike(String value) {
            addCriterion("heal like", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealNotLike(String value) {
            addCriterion("heal not like", value, "heal");
            return (Criteria) this;
        }

        public Criteria andHealIn(List<String> values) {
            addCriterion("heal in", values, "heal");
            return (Criteria) this;
        }

        public Criteria andHealNotIn(List<String> values) {
            addCriterion("heal not in", values, "heal");
            return (Criteria) this;
        }

        public Criteria andHealBetween(String value1, String value2) {
            addCriterion("heal between", value1, value2, "heal");
            return (Criteria) this;
        }

        public Criteria andHealNotBetween(String value1, String value2) {
            addCriterion("heal not between", value1, value2, "heal");
            return (Criteria) this;
        }

        public Criteria andHealrateIsNull() {
            addCriterion("healRate is null");
            return (Criteria) this;
        }

        public Criteria andHealrateIsNotNull() {
            addCriterion("healRate is not null");
            return (Criteria) this;
        }

        public Criteria andHealrateEqualTo(String value) {
            addCriterion("healRate =", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateNotEqualTo(String value) {
            addCriterion("healRate <>", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateGreaterThan(String value) {
            addCriterion("healRate >", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateGreaterThanOrEqualTo(String value) {
            addCriterion("healRate >=", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateLessThan(String value) {
            addCriterion("healRate <", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateLessThanOrEqualTo(String value) {
            addCriterion("healRate <=", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateLike(String value) {
            addCriterion("healRate like", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateNotLike(String value) {
            addCriterion("healRate not like", value, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateIn(List<String> values) {
            addCriterion("healRate in", values, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateNotIn(List<String> values) {
            addCriterion("healRate not in", values, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateBetween(String value1, String value2) {
            addCriterion("healRate between", value1, value2, "healrate");
            return (Criteria) this;
        }

        public Criteria andHealrateNotBetween(String value1, String value2) {
            addCriterion("healRate not between", value1, value2, "healrate");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}